import http from '../http/http.js'
export default {


    //樊续徳的api封装
    __api_list_flags(params) {
        return http.request({
            url: '/flag',
            method: 'GET',
            params: params
        });

    },
    __api_index_users(params) {
        return http.request({
            url: '/user',
            method: 'GET',
            params: params
        });

    },

    __api_index_search(params) {
        return http.request({
            url: '/flag',
            method: 'GET',
            params: params
        });

    },
    __api_put_flags(id, params) {
        return http.request({
            url: '/flag/' + id,
            method: 'PUT',
            params: params
        });

    },
    //
    __api_list_delete(params) {
        return http.request({
            url: '/user/' + params.id,
            method: 'DELETE'
        });
    },
    __api_grzx(params) {
        return http.request({
            url: '/users',
            method: 'GET',
            params: params
        });

    },
    __api_list_types(params) {
        return http.request({
            url: '/type',
            method: 'GET',
            params: params
        });
    },

}